package com.code.pattern.decorator;

/**
 * 实体的装饰类
 * 鸡蛋装饰类
 * @author: liyufei
 * @date: 2021-04-03 21:53
 */
public class EggDecorator extends AbstractDecorator {
    public EggDecorator(ABattercake aBattercake) {
        super(aBattercake);
    }

    @Override
    public String getDesc() {
        return super.getDesc() + " 加一个鸡蛋";
    }

    @Override
    public int cost() {
        return super.cost() + 1;
    }
}
